package com.tsd.jxc.sale.service;

import com.tsd.core.vo.PageBean;
import com.tsd.jxc.sale.entity.JxcSaleOrderDetail;
import com.tsd.jxc.sale.entity.JxcSaleOrderDetailExt;
import com.tsd.jxc.sale.entity.JxcSaleOrderExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcSaleOrderDetail服务实现层接口
 *
 * @author Hillpool
 * @date 2022/07/29 15:04:27
 */
public interface JxcSaleOrderDetailService {

    /**
     * 描述：根据id获取JxcSaleOrderDetail
     *
     * @param id
     */
    JxcSaleOrderDetail getJxcSaleOrderDetailById(Long id) throws Exception;

    /**
     * 描述：根据sid获取JxcSaleOrderDetail
     *
     * @param sid
     */
    JxcSaleOrderDetailExt queryBySid(String sid) throws Exception;

    List<JxcSaleOrderDetailExt> queryValidByOrderList(List<String> order_list);

    /**
     * 描述：根据sid列表删除JxcSaleOrderDetail
     *
     * @param list
     */
    void deleteJxcSaleOrderDetails(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新JxcSaleOrderDetail
     *
     * @param record
     * @param opUser
     */
    void saveJxcSaleOrderDetail(JxcSaleOrderDetail record, SysUser opUser) throws Exception;

    void saveJxcSaleOrderDetail(JxcSaleOrderExt record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询JxcSaleOrderDetail
     *
     * @param params
     * @param page
     */
    List<JxcSaleOrderDetailExt> findJxcSaleOrderDetails(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询JxcSaleOrderDetail
     *
     * @param params
     */
    List<JxcSaleOrderDetailExt> findJxcSaleOrderDetails(Map<String, Object> params) throws Exception;

    List<JxcSaleOrderDetailExt> findJxcSaleOrderDetails4Sale2Buy(Map<String, Object> params, PageBean page) throws Exception;

    List<JxcSaleOrderDetailExt> queryJxcSaleOrderDetailList4Return(Map<String, Object> params, PageBean page) throws Exception;

}